#include <stdio.h>

int max_value(int a, int b, int c)
{
    int m = a>b ? a : b;
    return m>c ? m : c;
}

int main(int argc, char const *argv[])
{
    printf("max: %d\n", max_value(1,2,3));
    return 0;
}
